// @ts-nocheck
/**
The routing of this file will not show the layout.
It is an independent new page.
the contents of the file still need to log in to access
 */
import type { AppRouteModule } from '/@/router/types';
import { SIMPLE_LAYOUT } from '/@/router/constant';


// test
// http:ip:port/main-out
export const mainOutRoutes: AppRouteModule[] = [
  {
    id: 'FormDesigner',
    path: '/onlineDev/formDesigner',
    name: 'formDesigner',
    component: () => import('/@/views/onlineDev/diyForm/FormDesigner.vue'),
    meta: {
      title: '表单设计器',
      ignoreAuth: true,
    },
  },
  {
    id: 'InviteUser',
    path: '/account/invite',
    name: 'formDesigner',
    component: () => import('/@/views/system/tenantMember/InviteUserJoin.vue'),
    meta: {
      title: '邀请加入',
      ignoreAuth: false,
    },
  },
  
  {
    id: 'MainOutDemo',
    path: '/demo/main-out',
    name: 'MainOutDemo',
    component: () => import('/@/views/demo/main-out/index.vue'),
    meta: {
      title: 'MainOut',
      ignoreAuth: true,
    },
  },
  // 外部在线预览
  {
    id: 'outOnlinePreview',
    path: '/outOnlinePreview',
    name: 'outOnlinePreview',
    component: () => import('/@/views/onlinePreview/index.vue'),
    meta: {
      title: '在线预览',
      ignoreAuth: true,
    },
  },

  // 验证结果页面
  {
    id: 'verifyResultLayout',
    path: '/verifyResult',
    name: 'verifyResultLayout',
    component: SIMPLE_LAYOUT,
    redirect: '/verifyResult/index',
    children: [
      {
        id: 'verifyResult',
        path: 'index',
        name: 'verifyResult',
        component: () => import('/@/views/verifyResult/index.vue'),
        meta: {
          title: '验证结果',
          ignoreAuth: true,
        },
      },
    ],
  },
];

export const mainOutRouteNames = mainOutRoutes.map((item) => item.name);
